package design.Strategy;

/**
 * Created by looper on 2017/8/17.
 */
public class StrategyTest {
  public static void main(String[] args) {
    Strategy strategy = new Strategy();
    //使用插入排序
    strategy.setSort(new StraightInsertionSort());
    strategy.operation();

    //使用堆排序
    strategy.setSort(new HeapSort());
    strategy.operation();

    //使用快排
    strategy.setSort(new QuickSort());
    strategy.operation();
  }
}
